home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / v cisle / acehtml / acehtmlfreeware.exe / scriptdef / Dynamic Image selector.sd < prev    next >
INI File  |  2004-06-28  |  2KB  |  72 lines

  1. [SUBJECT]
  2. Description=Dynamic Image selector Script
  3. ImageIndex=-1
  4. Folder=Graphical Effects
  5.  
  6.  
  7. [BODY_TEXT]
  8.  
  9. ;<form name="dynamicselector">
  10. ;<table border="0" width="100%" cellspacing="0" cellpadding="0" height="178" summary="">
  11. ;<tr>
  12. ;<td width="35%" valign="top" align="left">
  13. ;<select name="dynamicselector2" size="4" onChange="generateimage(this.options[this.selectedIndex].value)">
  14. ;
  15. ;<option value="`Image1`">Car</option>
  16. ;<option value="`Image2`">Pool ball</option>
  17. ;<option value="`Image3`">Plane</option>
  18. ;<option value="`Image4`">Hand</option>
  19. ;<option value="`Image5`">Pie</option>
  20. ;</select>
  21. ;<script>
  22. ;
  23. ;/*
  24. ;Dynamic Image selector Script- 
  25. ;⌐ Dynamic Drive (www.dynamicdrive.com)
  26. ;For full source code, installation instructions,
  27. ;100's more DHTML scripts, and Terms Of
  28. ;Use, visit dynamicdrive.com
  29. ;*/
  30. ;
  31. ;function generateimage(which){
  32. ;if (document.all){
  33. ;dynamic3.innerHTML='<center>Loading image...</center>';
  34. ;dynamic3.innerHTML='<img src="'+which+'">';
  35. ;}
  36. ;else if (document.layers){
  37. ;document.dynamic1.document.dynamic2.document.write('<img src="'+which+'">');
  38. ;document.dynamic1.document.dynamic2.document.close();
  39. ;}
  40. ;else
  41. ;alert('You need NS 4 or IE 4 to view the images!');
  42. ;}
  43. ;</script>
  44. ;</td>
  45. ;<td width="65%" valign="top" align="left"><ilayer id="dynamic1" width="100%" height="178"><layer id="dynamic2" width="100%" height="178"><div id="dynamic3"></div></layer></ilayer></td>
  46. ;</tr>
  47. ;</table>
  48. ;</form>
  49.  
  50.  
  51.  
  52. [`Image1`]
  53. Kind=U
  54. Value=buggy.gif
  55.  
  56. [`Image2`]
  57. Kind=U
  58. Value=imagemap.gif
  59.  
  60. [`Image3`]
  61. Kind=U
  62. Value=plane.gif
  63.  
  64. [`Image4`]
  65. Kind=U
  66. Value=hand.gif
  67.  
  68. [`Image5`]
  69. Kind=U
  70. Value=cake.gif
  71.  
  72.